import { SET_TOKEN } from '../constants/token'

export default function counter(state = null, action) {
  switch (action.type) {
    case SET_TOKEN:
      return (state = action.payload)
    default:
      return state
  }
}
